package ExperimentFour.Observer;

/**
 * @author 北巷_东坡
 * @date 2022/11/15 20:22
 * @computer 10741
 */
public class Stock206 extends StockSubject206{
    @Override
    public void notice(int change) {
        if(change >= 0.5){
            System.out.println("股票价格浮动超过5%");
            for (Object obs:arrayList) {
                ((IncestorObserver206)obs).GiveNotice();
            }
        }
        else {
            System.out.println("价格浮动没有超过5%");
            System.out.println(0.6 >= 0.5);
        }
    }
}
